﻿using System.Web;
using System.Web.Optimization;

namespace Hrm.Web
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/site.css"));

            bundles.Add(new StyleBundle("~/Content/SinglePageCss").Include(
                      "~/Content/icons.css",
                      "~/Content/bootstrap.min.css",
                      "~/Content/plugins.css",
                      "~/Content/main.css"
                      ));

            bundles.Add(new ScriptBundle("~/bundles/SinglePageJs").Include(
                      "~/Scripts/libs/jquery-2.1.1.min.js",
                      "~/Scripts/bootstrap/bootstrap.min.js",
                      "~/Scripts/libs/modernizr.custom.js"));

            bundles.Add(new StyleBundle("~/Content/FrontCss").Include(
                      //"~/Content/icons.css",
                      //"~/Content/bootstrap.min.css",
                      "~/Content/frontmain.css",
                      "~/Content/revolution-slider.css",
                      "~/Content/carousel.css",
                      "~/Content/frontplugins.css"
                      ));

            bundles.Add(new ScriptBundle("~/bundles/FrontJs").Include(
                      //"~/Scripts/libs/jquery-2.1.1.min.js",
                      //"~/Scripts/bootstrap/bootstrap.min.js",
                      "~/Scripts/libs/modernizr.custom.js",
                      //"~/plugins/core/fastclick/fastclick.js",
                      //--"~/plugins/core/browser-selector/css_browser_selector.js",
                      "~/plugins/ui/carousel/owl.carousel.min.js",
                      //--"~/Scripts/libs/classie.js",
                      "~/Scripts/frontmain.js"));
            bundles.Add(new ScriptBundle("~/bundles/FrontIndexJs").Include(
                      "~/plugins/misc/slider-revolution/jquery.themepunch.tools.min.js",
                      "~/plugins/misc/slider-revolution/jquery.themepunch.revolution.min.js"));

            //BundleTable.EnableOptimizations = true;
        }
    }
}
